import { DataTypes, Model } from "sequelize";
import sequelize from "../sequelize";

export class Skill extends Model {
    declare id: number;
    declare name: string;
    declare email: string;
    declare password: string;
}

Skill.init(
    {
        id: {
            type: DataTypes.INTEGER,
            allowNull: false,
            primaryKey: true,
            autoIncrement: true,
            unique: true,
        },
        name: {
            type: DataTypes.STRING,
            allowNull: false,
        },
    },
    {
        tableName: "skills",
        sequelize,
    }
);
